home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS05.ADF / text / amigatricks next >
Text File  |  1986-01-15  |  1KB  |  33 lines

  1. Posted:  86-01-22 13:26:39 EST  Unread
  2. From:    rweiner                         
  3. Subject: AmigaDos tricks
  4. To:      amigados
  5. Text:
  6.    The following tricks may be of interest to CLI/AmigaDos users.
  7.  
  8. 1.  First, you can move a file to another directory without performing
  9.     a copy then delete. Use the RENAME command and specify the pathname
  10.     as part of the destination string.
  11.   
  12.     For example:
  13.  
  14.        rename lottahelp  newdir/lottahelp
  15.  
  16.     Moves the file 'lottahelp' to another directory called 'newdir'.
  17.  
  18.     You can even give the file a different name. BUT-BUT-BUT, you can
  19.     only move files from one device to another location ON THE SAME
  20.     DEVICE. You cannot move a file from RAM: to DF1:, etc.
  21.  
  22. 2.  It is possible to set the system date/time by redirecting
  23.     the stdin. But, you have to fool DATE by doing the following.
  24.  
  25.        DATE <newinfile [>nil:] ?
  26.  
  27.     The [] parameter is optional (do not included the '[' ']' 
  28.     symbols). It will redirect the output of the DATE command to 
  29.     the nil: device.
  30.  
  31.     The '?' is used to fool the date command into using 
  32.     'newinfile' as the input for DATE.
  33.